package com.cc.stock.dao;

import com.cc.stock.entity.Delegate;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DelegateDao {


    void addDelegate(@Param("user_id") int userId,@Param("stock_id") String stockId,
                     @Param("price")double price, @Param("num")int num,
                     @Param("type")boolean type,@Param("time") String time);

    List<Delegate> findAllDelegate(@Param("user_id")int userId);

    void cancelDelegate(@Param("delegate_id") int delegateId);
}
